<% form_tag change_password_update_user_path(current_user), :method => :put do |f| %>
    
                   
            Old Password
            <%= password_field_tag 'old_password', @old_password, :size => 45, :class => 'text' %>
            
            New Password
            <%= password_field_tag 'password', {}, :size => 45, :class => 'text' %>
            Between 4 and 40 characters
            
            Confirm new password
            <%= password_field_tag 'password_confirmation', {}, :size => 45, :class => 'text' %>

        
        <%= submit_tag 'Change password' %>
    
<%end%>